package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Ellis.Li on 2017/5/12.
 */
public class CarAdditionalInfo extends BaseModel<CarAdditionalInfo> {

    /** ID*/
    public String additional_order_id;
    /** 订单编号*/
    public String car_order_no;
    /** 格式化金额*/
    public String additional_amount_format;
    /** 名称*/
    public String additional_order_no;
    /** 名称*/
    public String status;
    /**状态名称*/
    public String additional_order_status_name;
    /**扣款名称内容*/
    public String additional_order_category_name;
    /**添加日期*/
    public String date_added;
    /**文字显示颜色*/
    public String additional_order_status_style_color;

    @Override
    public CarAdditionalInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            additional_order_id = jsonObject.optString("additional_order_id");
            car_order_no = jsonObject.optString("car_order_no");
            additional_amount_format = jsonObject.optString("additional_amount_format");
            additional_order_no = jsonObject.optString("additional_order_no");
            status = jsonObject.optString("status");
            additional_order_status_name = jsonObject.optString("additional_order_status_name");
            additional_order_category_name = jsonObject.optString("additional_order_category_name");
            date_added= jsonObject.optString("date_added");
            additional_order_status_style_color= jsonObject.optString("additional_order_status_style_color");
            return this;
        }
        return null;
    }
}
